<template>
  <!-- 公司列表项 -->
  <div class="company_item">
    <div class="item_left">
      <img :src="item.logo | formatImg" alt="" />
    </div>
    <div class="item_right">
      <div class="main">
        <h3 class="name">{{ item.name }}</h3>
        <span class="grade">{{ item.score }}分</span>
      </div>
      <div class="sub">{{ item.region }} {{ item.distance }}</div>
      <div class="tags">
        <div class="tag_item">{{ item.type }}</div>
        <div class="tag_item">{{ item.step }}</div>
        <div class="tag_item">{{ item.scale }}</div>
      </div>
      <div class="bottom">
        <span>在招职位：</span>
        <span class="num">{{ item.positions }}</span>
        <span style="margin:14.25px">/</span>
        <span>最后更新时间：</span>
        <span class="time">{{ item.updated_at | formatTime }}</span>
      </div>
    </div>
  </div>
</template>

<script>
// 导入过滤器
// import filterJs from '@/filters/company.js'
export default {
  name: 'CompanyItem',
  props: {
    item: {
      type: Object,
      default () {
        return []
      }
    }
  }
  // filters: ['filterJs']
}
</script>

<style scoped lang="less">
.company_item {
  height: 264.06px;
  border-bottom: 2px solid #f7f4f5;
  display: flex;
  .item_left {
    img {
      width: 129px;
      height: 129px;
    }
  }
  .item_right {
    padding: 0 32.53px;
    flex: 1;
    .main {
      display: flex;
      align-items: center;

      .name {
        flex: 1;
        width: 128px;
        height: 50px;
        font-family: PingFangSC-Semibold;
        font-size: 36px;
        color: #19232b;
        letter-spacing: 0;
        font-weight: 600;
      }
      .grade {
        height: 33px;
        font-family: PingFangSC-Regular;
        font-size: 24px;
        color: #545671;
        letter-spacing: 0.28px;
        font-weight: 400;
      }
    }
    .sub {
      margin-top: 10px;
      height: 33px;
      font-family: PingFangSC-Regular;
      font-size: 24px;
      color: #545671;
      letter-spacing: 0.28px;
      font-weight: 400;
    }
    .tags {
      margin-top: 25.08px;
      display: flex;

      .tag_item {
        text-align: center;
        padding: 0 10px;
        line-height: 36px;
        margin-right: 26.28px;
        height: 36px;
        background: #f7f4f5;
        border-radius: 6px;
        font-family: PingFangSC-Regular;
        font-size: 24px;
        color: #b4b4bd;
        letter-spacing: 0.28px;
        font-weight: 400;
      }
    }
    .bottom {
      margin-top: 32.98px;
      height: 33px;
      font-family: PingFangSC-Regular;
      font-size: 24px;
      color: #b4b4bd;
      letter-spacing: 0.28px;
      line-height: 33px;
      font-weight: 400;
      .num {
        height: 33px;
        font-family: PingFangSC-Regular;
        font-size: 24px;
        color: #00b8d4;
        letter-spacing: 0.28px;
        line-height: 33px;
        font-weight: 400;
      }
    }
  }
}
</style>
